package com.vjmobi.test.vo.page;

import java.util.List;

public class PageResp<T> extends PageInfo {
	private long total;
	private List<T> record;
	public long getFirst() {
		return 1;
	}
	public long getLast() {
		return (total + size - 1)/size;
	}
	public long getPre() {
		if(num > 1) {
			return num - 1;
		}
		return 1;
	}
	public long getNext() {
		if(num >= getLast()) {
			return getLast();
		}
		return num + 1;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public List<T> getRecord() {
		return record;
	}
	public void setRecord(List<T> record) {
		this.record = record;
	}
}
